package com.xiguaji.tiktok.task.blogger.repository;

import com.xiguaji.tiktok.task.blogger.Blogger;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;

import java.util.Optional;

@Repository
public interface BloggerRepository extends CrudRepository<Blogger, Long>, BloggerExtRepository {
    Optional<Blogger> findByoUid(long oUid);

    Optional<Blogger> findFirstByIdGreaterThanOrderByIdAsc(long id);

    boolean existsByoUid(long oUid);
}
